<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鼠标事件</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
    </style>
</head>

<body>
    桃李不言下自成蹊
</body>

</html>
<script>
    window.document.addEventListener('contextmenu', function(e) {
        e.preventDefault();
    });
    window.document.addEventListener('selectstart', function(e) {
        e.preventDefault();
    });
</script>